package com.lu.common.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.lu.common.dao.KnowledgeUserDao;
import com.lu.common.domain.KnowledgeUserDO;
import com.lu.common.service.KnowledgeUserService;

@Service
public class KnowledgeUserServiceImpl implements KnowledgeUserService {
	@Autowired
	private KnowledgeUserDao knowledgeUserDao;
	
	@Override
	public KnowledgeUserDO get(Long id){
		return knowledgeUserDao.get(id);
	}
	
	@Override
	public List<KnowledgeUserDO> list(Map<String, Object> map){
		return knowledgeUserDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return knowledgeUserDao.count(map);
	}
	
	@Override
	public int save(KnowledgeUserDO knowledgeUser){
		return knowledgeUserDao.save(knowledgeUser);
	}

    @Override
    public void saveBatch(List<KnowledgeUserDO> knowledgeUser) throws Exception {
		knowledgeUserDao.saveBatch(knowledgeUser);
    }
	
	@Override
	public int update(KnowledgeUserDO knowledgeUser){
		return knowledgeUserDao.update(knowledgeUser);
	}

    @Override
    public void updateBatch(List<KnowledgeUserDO> knowledgeUser) throws Exception {
		knowledgeUserDao.updateBatch(knowledgeUser);
    }
	
	@Override
	public int remove(Long id){
		return knowledgeUserDao.remove(id);
	}
	
	@Override
	public int batchRemove(Long[] ids){
		return knowledgeUserDao.batchRemove(ids);
	}
	
}
